﻿@model Cafeteria.Models.Administracion.Usuario.UsuarioxSucursalBean

@{
    ViewBag.Title = "modificar Horario";
}

<h2>Modificar Horario</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm("modificarHorario2", "Usuario", FormMethod.Post, new { @class = "form" }))
{
    <fieldset>
        <div class = "widget" >   @Html.HiddenFor(model => model.ID)
            <div class = "title" >
                <img src="@Url.Content("~/Content/images/icons/dark/list.png")"  class="titleIcon">
                <h6>@ViewBag.Title</h6>
            </div>
            <div class = "formRow" >  @Html.LabelFor( model => model.nombres )
                <div class = "formRight" > @Html.DisplayFor( model => model.nombres )   </div> @Html.HiddenFor(model => model.nombres) 
                <div class = "clear" ></div>
            </div>

            <div class = "formRow" > @Html.LabelFor( model => model.nroDocumento )
                <div class = "formRight" > @Html.DisplayFor(model => model.nroDocumento) </div> @Html.HiddenFor(model => model.nroDocumento)
                <div class = "clear" ></div>
            </div>

            <div class="formRow">
               <span>Sucursal</span>                             
                <div class = "formRight" > @Html.DisplayFor(model => model.sucursal) </div> @Html.HiddenFor(model => model.sucursal)  @Html.HiddenFor(model => model.idsucursal)
                <div class = "clear" ></div>
            </div>

            <div class = "formRow" > @Html.LabelFor( model => model.fechaIngreso ) 
                 <div class = "formRight" >  @Html.DisplayFor(model => model.fechaIngreso)   </div>  @Html.HiddenFor(model => model.fechaIngreso)  
                <div class = "clear" ></div>
            </div>

            <div class = "formRow" > Fecha Fin
                <div class = "formRight" >
                       @Html.DisplayFor(model => model.fechaFin)  @Html.HiddenFor(model => model.fechaFin)
                </div> 
                <div class = "clear" ></div>
            </div>
        

        </div>
        
        </fieldset>
    
        <div class="widget">
          <div class="title"><img src="../../Content/images/icons/dark/frames.png" alt="" class="titleIcon" /><h6>Asignar horario</h6></div>
            <table cellpadding="0" cellspacing="0" width="100%" class="sTable">
                <thead>
                    <tr>
                        <td>Dia</td>
                        <td>Hora de Ingreso</td>
                        <td>Hora de Salida</td>
                    </tr>
                </thead>
            <tbody>
         
                @for (int i=0; i<Model.dia.Count;i++)
                {

                       <tr >
                            <td>@Html.DisplayFor(model => Model.dia[i])</td>@Html.HiddenFor(model => Model.dia[i])
                            <td>@Html.TextBoxFor(model => Model.horaInicio[i], new { @class="timepicker"})</td>
                            <td>@Html.TextBoxFor(model => Model.horaFin[i], new { @class = "timepicker" })</td>
                
                       </tr>
        
                }
               
            </tbody>
        </table>
      </div>

    
    
    
    <p>
        <input type="submit" value="Crear" class = "redB" />        
        <a href="javascript:history.back()">Guardar</a>
    </p>
}


